package com.atde._04_structural_design_patterns.decorator;


/**
 * @BelongsProject: hsp_java_design_mode
 * @BelongsPackage: com.atde._04_structural_design_patterns.decorator
 * @Author: Del
 * @CreateTime: 2025-06-20  15:01
 * @Description: 装饰者模式 --- 继承了 Drink --- 作用是做了一层缓冲层可以将共性代码提取出来
 * @Version: 1.0
 */
public class Coffee extends Drink{
    @Override
    public float cost() {
        return super.getPrice();
    }
}
